//代码题 三、基于下面提供的代码，完成后续的四个练习:


//练习1：使用fp.add(x,y)和fp.map(f,x)创建一个能让functor里的值增加的函数
const fp = require('lodash/fp')
const { Maybe, Container } = require('./functors')
const maybe = Maybe.of([5, 6, 1])
const ex1 = () => {
    //你需要实现的函数
    return maybe.map(item => fp.map(fp.add(1), item))
}
console.log(ex1());
//结果：Maybe { _value: [ 6, 7, 2 ] }